package cn.zw.netty;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.zw.netty")
public class SpringServer {

    public static void main(String[] args) throws InterruptedException {
        ApplicationContext context=new AnnotationConfigApplicationContext(SpringServer.class);
        synchronized (SpringServer.class){
            SpringServer.class.wait();
        }

    }

}
